﻿package com.designoutput.elements{
	import com.designoutput.enum.ElementType;
	import com.designoutput.utils.Unit;
	import com.designoutput.utils.UnitUtils;
	
	/**
	 *RectElement -> BaseRectElement -> BaseElement ->Base 
	 * 
	 */	
	public class RectElement extends BaseRectElement
	{	
		public function RectElement()
		{
			super();
		}
		
		override public function getClassName():String{
			return ElementType.RectangleElement; 
		}

		override protected function updateElement():void
		{
			super.updateElement();
			
			this.graphics.clear();
			
			if(useFill){
				drawRect(this, 0, 0, _width ,_height , this.fillColor, this.fillAlpha);
			}
			if(useLine){
				drawRectLine(this, 0, 0, _width ,_height , this.lineColor, this.lineAlpha, this.lineSize);
			}
		}
	}
}